package com.iot.device.domain;

import com.iot.common.annotation.Excel;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.iot.common.core.domain.BaseEntity;

/**
 * 设备序列号生成对象 t_device_serial_no
 *
 * @author iot
 * @date 2023-06-12
 */
public class DeviceSerialNo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Integer id;

    /** 设备类型 */
    @Excel(name = "设备类型")
    private String deviceType;

    /** 设备编号 */
    @Excel(name = "设备编号")
    private String deviceNo;

    /** 序列号 */
    @Excel(name = "序列号")
    private Integer serialNo;

    public void setId(Integer id)
    {
        this.id = id;
    }

    public Integer getId()
    {
        return id;
    }
    public void setDeviceType(String deviceType)
    {
        this.deviceType = deviceType;
    }

    public String getDeviceType()
    {
        return deviceType;
    }
    public void setDeviceNo(String deviceNo)
    {
        this.deviceNo = deviceNo;
    }

    public String getDeviceNo()
    {
        return deviceNo;
    }
    public void setSerialNo(Integer serialNo)
    {
        this.serialNo = serialNo;
    }

    public Integer getSerialNo()
    {
        return serialNo;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("deviceType", getDeviceType())
                .append("deviceNo", getDeviceNo())
                .append("serialNo", getSerialNo())
                .append("createTime", getCreateTime())
                .toString();
    }
}
